package com.sdruixinggroup.mondayb2b.models;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/11/28.
 */

public class Classify implements Serializable{

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1511874228
     * categories : [{"name":"推荐分类","pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","child":[{"id":4,"name":"金克拉","pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/f52c1e1577a74f6a75e93a4fd9597b49.png","child":[]},{"id":5,"name":"超级化肥","pic":"blob:http://localhost:9527/e2937487-c596-4f74-a19f-79f574379b04","child":[]}]},{"id":1,"name":"化肥(氮磷钾)","pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/26c9610f479b0dafcec85e6ed18e478e.png","child":[{"id":4,"name":"金克拉","pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/f52c1e1577a74f6a75e93a4fd9597b49.png","child":[]}]},{"id":3,"name":"深圳化肥","pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/11759eec886757afc5433292bbeb2b48.png","child":[{"id":5,"name":"超级化肥","pic":"blob:http://localhost:9527/e2937487-c596-4f74-a19f-79f574379b04","child":[]}]}]
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private List<CategoriesBean> categories;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public List<CategoriesBean> getCategories() {
        return categories;
    }

    public void setCategories(List<CategoriesBean> categories) {
        this.categories = categories;
    }

    public static class CategoriesBean implements Serializable{
        /**
         * name : 推荐分类
         * pic : https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png
         * child : [{"id":4,"name":"金克拉","pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/f52c1e1577a74f6a75e93a4fd9597b49.png","child":[]},{"id":5,"name":"超级化肥","pic":"blob:http://localhost:9527/e2937487-c596-4f74-a19f-79f574379b04","child":[]}]
         * id : 1
         */

        private String name;
        private String pic;
        private int id;
        private List<ChildBean> child;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public List<ChildBean> getChild() {
            return child;
        }

        public void setChild(List<ChildBean> child) {
            this.child = child;
        }

        public static class ChildBean implements Serializable{
            /**
             * id : 4
             * name : 金克拉
             * pic : https://yingdd.oss-cn-hangzhou.aliyuncs.com/f52c1e1577a74f6a75e93a4fd9597b49.png
             * child : []
             */

            private int id;
            private String name;
            private String pic;
            private List<?> child;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public List<?> getChild() {
                return child;
            }

            public void setChild(List<?> child) {
                this.child = child;
            }
        }
    }
}
